<include file="Public:header" />
<!--主体内容-->
<!--左边-->
<div class="centent_box">
    <include file="Public:left" />
    <!--右边-->
    <div class="centent_right_box">
        <div class="centent_right rightCon">
            <div class="Mtitle">
                <ul>
                    <li class="on"><span>系统设置</span></li>
                </ul>
                <div class="rightWord"><a href="{:U('Set/dict')}">字典设置</a> &gt;&gt; 新增字典</div>
            </div>
            <form id="info_form" action="{:U('Set/dict_second')}" method="post" enctype="multipart/form-data">
                <div class="con_div">
                    <ul class="formList width2 list_ul list_mp">
                        <li>
                            <label>楼栋名称：</label>
                            <input type="text"  name="estate" class="inputStyle width3" value="{$build.alias}" readonly>
                            <input type="hidden"  name="bid"  value="{$build.bid}" >
                            <input type="hidden"  name="eid"  value="{$build.estate_id}" >
                        </li>
                        <li class="li_radio">
                            <label class="lw90">名称类型：</label>
                            <input type="radio" name="type" id="type1" value="1" checked><label for="type1">数字</label>
                            <input type="radio" name="type" id="type2" value="2"><label for="type2">字母</label>
                        </li>
                    </ul>
                    <volist name="unit.num" id="vo" key="k">
                            <fieldset class="formList field num">
                                <legend>{$vo}单元：</legend>
                                <label>选择户型：</label>
                                <select class="selectStyle" name="unit_num[{$k}][used_type]">
                                    <option value="0">--请选择--</option>
                                    <volist name="used_type"  id="v">
                                        <option value="{$v.id}">{$v.type_title}</option>
                                    </volist>
                                </select>
                                <div class="clear area">
                                    <label>面积：</label>
                                    <input type="number"  name="unit_num[{$k}][area]" class="inputStyle width2">
                                    <label>户型图：</label><input type="file" name="unit_num[]">
                                </div>
                                <div class="clear" style="margin-left: 25px;margin-top: 50px;">
                                    <span>朝向：</span>
                                    <input type="radio" name="unit_num[{$k}][aspect]" value="10">西北
                                    <input type="radio" name="unit_num[{$k}][aspect]" value="9">西南
                                    <input type="radio" name="unit_num[{$k}][aspect]" value="8">东北
                                    <input type="radio" name="unit_num[{$k}][aspect]" value="7">东南
                                    <input type="radio" name="unit_num[{$k}][aspect]" value="6">南北
                                    <input type="radio" name="unit_num[{$k}][aspect]" value="5">东西
                                    <input type="radio" name="unit_num[{$k}][aspect]" value="4" checked >北
                                    <input type="radio" name="unit_num[{$k}][aspect]" value="3">南
                                    <input type="radio" name="unit_num[{$k}][aspect]" value="2">西
                                    <input type="radio" name="unit_num[{$k}][aspect]" value="1">东
                                </div>
                                <input type="hidden"  name="unit_num[{$k}][unit]"  value="{$k}" >
                                <input type="hidden"  name="unit_num[{$k}][alias]"  value="{$vo}" >
                            </fieldset>
                    </volist>
                    <volist name="unit.char" id="vo" key="k">
                        <fieldset class="formList field char">
                            <legend>{$vo}单元：</legend>
                            <label>选择户型：</label>
                            <select class="selectStyle" name="unit_char[{$k}][used_type]">
                                <option value="0">--请选择--</option>
                                <volist name="used_type"  id="v">
                                    <option value="{$v.id}">{$v.type_title}</option>
                                </volist>
                            </select>
                            <div class="clear area">
                                <label>面积：</label>
                                <input type="number"  name="unit_char[{$k}][area]" class="inputStyle width2">
                                <label>户型图：</label><input type="file" name="unit_char[]">
                            </div>
                            <div class="clear" style="margin-left: 25px;margin-top: 50px;">
                                <span>朝向：</span>
                                <input type="radio" name="unit_char[{$k}][aspect]"  value="10">西北
                                <input type="radio" name="unit_char[{$k}][aspect]"  value="9">西南
                                <input type="radio" name="unit_char[{$k}][aspect]"  value="8">东北
                                <input type="radio" name="unit_char[{$k}][aspect]"  value="7">东南
                                <input type="radio" name="unit_char[{$k}][aspect]"  value="6">南北
                                <input type="radio" name="unit_char[{$k}][aspect]"  value="5">东西
                                <input type="radio" name="unit_char[{$k}][aspect]"  value="4" checked >北
                                <input type="radio" name="unit_char[{$k}][aspect]"  value="3">南
                                <input type="radio" name="unit_char[{$k}][aspect]"  value="2">西
                                <input type="radio" name="unit_char[{$k}][aspect]"  value="1">东
                            </div>
                            <input type="hidden"  name="unit_char[{$k}][unit]"  value="{$k}" >
                            <input type="hidden"  name="unit_char[{$k}][alias]"  value="{$vo}" >
                        </fieldset>
                    </volist>
                    <div style="margin-top: 50px">
                        <ul class="formList width2 list_ul list_mp">
                            <label></label>
                            <input type="submit" value="下一步" class="btnStyle">
                        </ul>
                    </div>

                </div>
            </form>
        </div>
    </div>
</div>
<script>
    $('input[name=type]').click(function (){
        var va = $(this).val();
        if (va == 1){
            $('.num').show ();
            $('.char').hide ();
        }
        if (va == 2){
            $('.num').hide ();
            $('.char').show ();
        }
    });
</script>
<include file="Public:footer" />